package com.hong.spring.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @Auther: csh
 * @Date: 2020/8/3 18:12
 * @Description:用户实体
 */
@Data
@TableName("user")
public class User extends Model <User> implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("user_name")
    private String username;
    private Integer age;
}
